package sy.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Table(name = "app_entrylog", catalog = "ssh")
public class AppEntryLog implements Serializable{
	private Integer id;
	private String blueToothOrginName;
	private String blueToothCustomName;
	private Date openTime;
	private SysAccount sysAccount;//业主
	private WYAccount wyAccount;//物业
	private String type;//开门类型（蓝牙/远程）
	private String doorId;//门id
	private String reqId;//请求代码(远程开门)
	private String upid;//项目唯一编号(远程开门)
	public AppEntryLog() {
		super();
	}
	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "blueToothOrginName")
	public String getBlueToothOrginName() {
		return blueToothOrginName;
	}
	public void setBlueToothOrginName(String blueToothOrginName) {
		this.blueToothOrginName = blueToothOrginName;
	}
	@Column(name = "blueToothCustomName")
	public String getBlueToothCustomName() {
		return blueToothCustomName;
	}
	public void setBlueToothCustomName(String blueToothCustomName) {
		this.blueToothCustomName = blueToothCustomName;
	}
	@Column(name = "openTime")
	public Date getOpenTime() {
		return openTime;
	}
	public void setOpenTime(Date openTime) {
		this.openTime = openTime;
	}
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "sysAccount")
	public SysAccount getSysAccount() {
		return sysAccount;
	}
	public void setSysAccount(SysAccount sysAccount) {
		this.sysAccount = sysAccount;
	}
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "wyAccount")
	public WYAccount getWyAccount() {
		return wyAccount;
	}
	public void setWyAccount(WYAccount wyAccount) {
		this.wyAccount = wyAccount;
	}
	@Column(name = "type")
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	@Column(name = "doorId")
	public String getDoorId() {
		return doorId;
	}
	public void setDoorId(String doorId) {
		this.doorId = doorId;
	}
	@Column(name = "reqId")
	public String getReqId() {
		return reqId;
	}
	public void setReqId(String reqId) {
		this.reqId = reqId;
	}
	@Column(name = "upid")
	public String getUpid() {
		return upid;
	}
	public void setUpid(String upid) {
		this.upid = upid;
	}
	
}
